
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>后台管理系统</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }

        body {
            background: linear-gradient(135deg, #fae18e 0%, #e4edf5 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .container {
            width: 100%;
            max-width: 500px;
            background: rgba(255, 255, 255, 0.92);
            border-radius: 20px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            padding: 40px;
            text-align: center;
        }

        .header {
            margin-bottom: 40px;
        }

        .logo {
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, #ef722f, #fcdd77);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            box-shadow: 0 8px 20px rgba(255, 106, 107, 0.4);
        }

        .logo i {
            font-size: 50px;
            color: white;
        }

        .header h1 {
            font-size: 2.5rem;
            color: #e87e50;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .header p {
            font-size: 1.1rem;
            color: #666;
            max-width: 350px;
            margin: 0 auto;
            line-height: 1.6;
        }

        .buttons {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: 40px;
        }

        .btn {
            display: flex;
            align-items: center;
            padding: 20px 30px;
            border-radius: 15px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            outline: none;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            background: white;
            color: #ff6b6b;
            border: 2px solid #ffd8d8;
            text-align: left;
        }

        .btn:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(255, 106, 107, 0.3);
            background: linear-gradient(135deg, #ef722f, #fcdd77);
            color: white;
        }

        .btn:hover .icon {
            background: rgba(255, 255, 255, 0.3);
        }

        .icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 20px;
            font-size: 1.8rem;
            background: rgba(255, 154, 61, 0.15);
            transition: all 0.3s ease;
        }

        .btn-text {
            flex: 1;
        }

        .btn-text span {
            display: block;
            font-size: 0.9rem;
            font-weight: normal;
            color: #999;
            margin-top: 5px;
        }

        .btn:hover .btn-text span {
            color: rgba(255, 255, 255, 0.9);
        }

        .arrow {
            font-size: 1.5rem;
            opacity: 0.5;
        }

        .footer a {
            color: #ff6b6b;
            text-decoration: none;
        }

        .footer a:hover {
            text-decoration: underline;
        }

        @media (max-width: 600px) {
            .container {
                padding: 30px 20px;
            }

            .header h1 {
                font-size: 2rem;
            }

            .btn {
                padding: 18px 25px;
                font-size: 1.1rem;
            }

            .icon {
                width: 45px;
                height: 45px;
                font-size: 1.5rem;
                margin-right: 15px;
            }
        }

        @media (max-width: 400px) {
            .btn {
                padding: 15px 20px;
            }

            .icon {
                width: 40px;
                height: 40px;
                margin-right: 12px;
            }
        }
    </style>
</head>
<body>
<div class="container">
    <div class="header">
        <div class="logo">
            <i class="fas fa-lock"></i>
        </div>
        <h1>后台管理</h1>
    </div>

    <div class="buttons">
        <a href="Articlebackend" class="btn">
            <div class="icon">
                <i class="fas fa-file-alt"></i>
            </div>
            <div class="btn-text">
                文章管理
                <span>管理所有文章内容</span>
            </div>
            <div class="arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>

        <a href="Commentbackend" class="btn">
            <div class="icon">
                <i class="fas fa-comments"></i>
            </div>
            <div class="btn-text">
                评论管理
                <span>审核和管理用户评论</span>
            </div>
            <div class="arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>

        <a href="Userbackend" class="btn">
            <div class="icon">
                <i class="fas fa-comments"></i>
            </div>
            <div class="btn-text">
                用户管理
            </div>
            <div class="arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>

        <a href="welcome" class="btn">
            <div class="icon">
                <i class="fas fa-home"></i>
            </div>
            <div class="btn-text">
                返回首页
            </div>
            <div class="arrow">
                <i class="fas fa-chevron-right"></i>
            </div>
        </a>
    </div>

</div>

<script>
    // 添加按钮悬停效果
    const buttons = document.querySelectorAll('.btn');
    buttons.forEach(button => {
        button.addEventListener('mouseenter', function() {
            this.style.transform = 'translateY(-5px)';
            this.style.boxShadow = '0 10px 25px rgba(255, 106, 107, 0.3)';
        });

        button.addEventListener('mouseleave', function() {
            this.style.transform = 'translateY(0)';
            this.style.boxShadow = '0 5px 15px rgba(0, 0, 0, 0.1)';
        });
    });

    // 添加点击效果
    buttons.forEach(button => {
        button.addEventListener('click', function(e) {
            e.preventDefault();

            // 添加点击动画
            this.style.transform = 'scale(0.98)';
            this.style.boxShadow = '0 2px 10px rgba(0, 0, 0, 0.1)';

            // 0.3秒后跳转
            setTimeout(() => {
                window.location.href = this.getAttribute('href');
            }, 300);
        });
    });
</script>
</body>
</html>